/*
 * ComponentElement.cpp
 *
 *  Created on: 2011-04-17
 *      Author: jacek
 */

#include "ComponentElement.h"

ComponentElement::ComponentElement(Component* component) {

	this->component=component;
	next=NULL;
}

ComponentElement::~ComponentElement() {
	component=NULL;
}
void ComponentElement::operator++(){
	if(next!=NULL){
		component=next->component;
		next=next->next;
	}else{
		component=NULL;
	}
}
